class Student{
    // 成员属性
    id:number;
    name:string = "xiaowang"
    static address:string = "武侯区"
    // 构造器里面的this执行属性必须要提前定义属性
    constructor(id:number,name:string){
        this.id = id;
        this.name = name
    }
    // play这个行为会放在原型对象身上
    play(type:string):void{
        console.log(type);
        
    }
    static show(){

    }
}

const student1 = new Student(1,"xiaofei")
student1.play("打游戏")
console.log(student1.id);
// console.log(student1.address);
console.log(Student.address);
Student.show()





